<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>{{title}}</title>
		<link rel="stylesheet" type="text/css" href="public/style.css" />
		<link rel="stylesheet" type="text/css" href="../public/bootstrap.min.css" />
		<script src="../public/jquery-3.5.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../public/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		<!-- 原案例js插件 -->
		<!-- <script src="public/sty.js" type="text/javascript" charset="utf-8"></script> -->

	</head>
	<body>

		<div class="btn bcg">
			<!-- -------------------------------------------------- -->

			<!-- -------------------------------------------------------- -->

			{{if user}}
			<span id="left">
				<a href="/mycenter">
				<span><img src="{{user.avatar}}" class="admin_imgas"></span>
				<span class="users">{{ user.id }}</span></a>
				<!-- <img src="{{ user.avatar }}"></img> -->
				<span><a href="/exit"><button type="button" class="btn btn-danger">退出登录</button></a></span>
			</span>
			<span id="right">
				<a href="/fabu"><button type="button" class="btn btn-success">留条言吧~</button></a>
			</span>
			{{else}}
				<span id="left">
					<a href="/register"><button type="button" class="btn btn-info">登录</button></a>
					<a href="/regsssss"><button type="button" class="btn btn-warning">注册</button></a>
				</span>
				{{/if}}
				
		</div>
		<div class="null">
			<!-- 空盒子 -->
		</div>
		
		<!-- ------------------------------------ -->
		{{each comments}}
		<div class="container">
			<div class="all col-md-12">
				<div class="body_box body_body">
					<p>ID:{{$value.id}}<span class="body_float">{{$value.create_date}}</span></p>
					<p><span id="text_span">发表：</span>{{$value.msg}}</p>
					<p><a href=""><img src="../img/weizan.png" class="body_pic" ></a><span>999+</span>
					<a href=""><img src="../img/pinglun.png" class="body_pic" ></a></p>
				</div>
			</div>
		</div>
		{{/each}}
		<!-- ------------------------------------ -->
		<!-- <div class="col-md-2"></div> -->
	</body>
</html>
<!-- <table class="table table-hover">
				{{each comments}}
				<tr>
					<td><span>id: </span> {{$value.id}}
					<span id="left">{{$value.create_date}}</span></td>
				</tr>
				<tr>
					<td><span id="text_span">发表: </span>{{$value.msg}}</td>
				</tr>
				{{/each}}
			</table> -->
			